<!--
 * @Author: jhw jiaxianshengye@gmail.com
 * @LastEditTime: 2025-07-31 17:15:07
 * @LastEditors: jhw
 * @Description: 文件描述
-->
<template>
  <div>
    <DesignCom @uploadImage="handleUploadImage"></DesignCom>
    <img :src="src" alt="" />
  </div>
</template>

<script setup lang="ts">
import DesignCom from '@/components/DesignCom.vue'
import { ref } from 'vue'
const src = ref('')

const handleUploadImage = (image: string) => {
  console.log('上传的图片:', image)
  src.value = image
  // 这里可以处理上传的图片，比如发送到服务器等
}
</script>

<style scoped></style>
"
